package com.cdie.myschool.controller;

import com.cdie.myschool.common.R;
import com.cdie.myschool.domain.dto.ScienceDTO;
import com.cdie.myschool.service.TeacherTermReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigInteger;

/**
 * @author 明祺奇-199000331
 * @date 2022/10/5 - 9:30
 */
@RestController
@RequestMapping("/teacherTermReport")
public class TeacherTermReportController {
    @Autowired
    private TeacherTermReportService teacherTermReportService;
    /**
     * @author 明祺奇
     * 启动页
     */
    @GetMapping("/startupPage")
    public R StartupPage(@RequestParam BigInteger teacherId){
        return teacherTermReportService.startupPage(teacherId);
    }
    /**
     * @author 明祺奇
     * 我和重工
     */
    @GetMapping("/meAndSchool")
    public R MeAndSchool(@RequestParam BigInteger teacherId){
        return teacherTermReportService.meAndSchool(teacherId);
    }
    /**
     * @author 明祺奇
     * 档案信息
     */
    @GetMapping("/archivalInformation")
    public R ArchivalInformation(@RequestParam BigInteger teacherId){
        return teacherTermReportService.archivalInformation(teacherId);
    }
    /**
     * @Description: 科研信息
     * @Param: [scienceDTO]
     * @return: com.cdie.myschool.common.R
     * @Author: 毛康源
     * @Date: 2022/10/11
     */
    @RequestMapping("/scientificInformation")
    public R ScientificInformation(@RequestBody ScienceDTO scienceDTO){
        return teacherTermReportService.scientificInformation(scienceDTO);
    }
    /**
     * @Description: 能力标签
     * @Param: [scienceDTO]
     * @return: com.cdie.myschool.common.R
     * @Author: 毛康源
     * @Date: 2022/10/12
     */
    @RequestMapping("/competencyLabel")
    public R SompetencyLabel(@RequestBody ScienceDTO scienceDTO){
        System.out.println(scienceDTO);
        return teacherTermReportService.competencyLabel((scienceDTO));
    }

}
